<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title></title>
<link href="css/admin_style.css?v20130107" rel="stylesheet" />
<script>
//全局变量，是Global Variables不是Gay Video喔
var GV = {
	JS_ROOT : "http://127.0.0.1:8080/phpwind9/res/js/dev/",																									//js目录
	JS_VERSION : "20130107",																										//js版本号
	TOKEN : '62532b5cc3d77233',	//token ajax全局
	REGION_CONFIG : {},
	SCHOOL_CONFIG : {},
	URL : {
		LOGIN : '',																													//后台登录地址
		IMAGE_RES: 'http://127.0.0.1:8080/phpwind9/res/images',																										//图片目录
		REGION : 'http://127.0.0.1:8080/phpwind9/index.php?m=bbs&c=webData&a=area',					//地区
		SCHOOL : 'http://127.0.0.1:8080/phpwind9/index.php?m=bbs&c=webData&a=school'				//学校
	}
};
</script>
<script src="js/wind.js?v20130107"></script>
<script src="js/jquery.js?v20130107"></script>

</head>
<body>
<div class="wrap">
	
<!-- start -->
<div class="nav">
	<ul class="cc">
				<li class="current"><a href="http://127.0.0.1:8080/phpwind9/admin.php?type=main&m=nav&c=nav">主导航</a></li>
					<li><a href="http://127.0.0.1:8080/phpwind9/admin.php?type=bottom&m=nav&c=nav">底部导航</a></li>
					<li><a href="http://127.0.0.1:8080/phpwind9/admin.php?type=my&m=nav&c=nav">我的下拉菜单</a></li>
			</ul>
</div>

		<div class="h_a">功能说明</div>
	<div class="prompt_text">
		<ul>
			<li>“设为首页” 可以把当前页设为网站默认首页。</li>
		</ul>
	</div>
	
<!--div class="mb10">
	<a href="http://127.0.0.1:8080/phpwind9/admin.php?m=nav&c=nav&a=add&type=main" class="btn J_dialog"><span class="add"></span>添加导航</a>
</div-->
<form method="post" class="J_ajaxForm" action="http://127.0.0.1:8080/phpwind9/admin.php?m=nav&c=nav&a=dorun" data-role="list">

<div class="table_list">
	<table width="100%" id="J_table_list" style="table-layout:fixed;">
		<colgroup>
			<col width="30">
			<col width="380">
			<col width="260">
			<col width="68">
			<col>
		</colgroup>
		<thead>
			<tr>
				<td></td>
				<td>[顺序] 导航名称</td>
				<td>链接地址</td>
				<td>
								设为首页
								</td>
				<td class="tac">启用</td>
				<td>操作</td>
			</tr>
		</thead>
			<tbody>
		<tr>
			<td><span class="zero_icon" data-id="1"></span></td>
			<td>
				<input name="data[1][navid]" type="hidden" value="1" >
				<input name="data[1][orderid]" type="text" class="input length_0 mr10" value="1">
				<input name="data[1][name]" type="text" class="input length_3 mr5" value="首页">
								<a style="display:none" href="http://127.0.0.1:8080/phpwind9/admin.php?parentid=1&type=main&m=nav&c=nav&a=add" class="link_add J_addChild add_nav" data-id="1" data-html="tbody" data-type="nav_2">添加二级导航</a>
							</td>
			<td><input name="data[1][link]" type="text" class="input length_4" value="index.php"></td>
			<td>
								<input type="radio" name="home"  value="1" >
							</td>
			<td class="tac"><input name="data[1][isshow]" type="checkbox" value="1" ></td>
			<td>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=1&type=main&m=nav&c=nav&a=edit" class="mr10 J_dialog" title="导航编辑">[编辑]</a>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=1&m=nav&c=nav&a=del" class="mr10 J_ajax_del">[删除]</a>
			</td>
		</tr>
		</tbody>
				<tbody>
		<tr>
			<td><span class="zero_icon" data-id="18"></span></td>
			<td>
				<input name="data[18][navid]" type="hidden" value="18" >
				<input name="data[18][orderid]" type="text" class="input length_0 mr10" value="2">
				<input name="data[18][name]" type="text" class="input length_3 mr5" value="版块">
								<a style="display:none" href="http://127.0.0.1:8080/phpwind9/admin.php?parentid=18&type=main&m=nav&c=nav&a=add" class="link_add J_addChild add_nav" data-id="18" data-html="tbody" data-type="nav_2">添加二级导航</a>
							</td>
			<td><input name="data[18][link]" type="text" class="input length_4" value="index.php?m=bbs&amp;c=forumlist"></td>
			<td>
								<input type="radio" name="home"  value="18" >
							</td>
			<td class="tac"><input name="data[18][isshow]" type="checkbox" value="1"  checked></td>
			<td>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=18&type=main&m=nav&c=nav&a=edit" class="mr10 J_dialog" title="导航编辑">[编辑]</a>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=18&m=nav&c=nav&a=del" class="mr10 J_ajax_del">[删除]</a>
			</td>
		</tr>
		</tbody>
				<tbody>
		<tr>
			<td><span class="zero_icon" data-id="2"></span></td>
			<td>
				<input name="data[2][navid]" type="hidden" value="2" >
				<input name="data[2][orderid]" type="text" class="input length_0 mr10" value="2">
				<input name="data[2][name]" type="text" class="input length_3 mr5" value="论坛">
								<a style="display:none" href="http://127.0.0.1:8080/phpwind9/admin.php?parentid=2&type=main&m=nav&c=nav&a=add" class="link_add J_addChild add_nav" data-id="2" data-html="tbody" data-type="nav_2">添加二级导航</a>
							</td>
			<td><input name="data[2][link]" type="text" class="input length_4" value="index.php?m=bbs"></td>
			<td>
								<input type="radio" name="home"  value="2"  checked>
							</td>
			<td class="tac"><input name="data[2][isshow]" type="checkbox" value="1"  checked></td>
			<td>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=2&type=main&m=nav&c=nav&a=edit" class="mr10 J_dialog" title="导航编辑">[编辑]</a>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=2&m=nav&c=nav&a=del" class="mr10 J_ajax_del">[删除]</a>
			</td>
		</tr>
		</tbody>
				<tbody>
		<tr>
			<td><span class="zero_icon" data-id="3"></span></td>
			<td>
				<input name="data[3][navid]" type="hidden" value="3" >
				<input name="data[3][orderid]" type="text" class="input length_0 mr10" value="3">
				<input name="data[3][name]" type="text" class="input length_3 mr5" value="喜欢">
								<a style="display:none" href="http://127.0.0.1:8080/phpwind9/admin.php?parentid=3&type=main&m=nav&c=nav&a=add" class="link_add J_addChild add_nav" data-id="3" data-html="tbody" data-type="nav_2">添加二级导航</a>
							</td>
			<td><input name="data[3][link]" type="text" class="input length_4" value="index.php?m=like&amp;c=like"></td>
			<td>
								<input type="radio" name="home"  value="3" >
							</td>
			<td class="tac"><input name="data[3][isshow]" type="checkbox" value="1"  checked></td>
			<td>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=3&type=main&m=nav&c=nav&a=edit" class="mr10 J_dialog" title="导航编辑">[编辑]</a>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=3&m=nav&c=nav&a=del" class="mr10 J_ajax_del">[删除]</a>
			</td>
		</tr>
		</tbody>
				<tbody>
		<tr>
			<td><span class="zero_icon" data-id="5"></span></td>
			<td>
				<input name="data[5][navid]" type="hidden" value="5" >
				<input name="data[5][orderid]" type="text" class="input length_0 mr10" value="4">
				<input name="data[5][name]" type="text" class="input length_3 mr5" value="话题">
								<a style="display:none" href="http://127.0.0.1:8080/phpwind9/admin.php?parentid=5&type=main&m=nav&c=nav&a=add" class="link_add J_addChild add_nav" data-id="5" data-html="tbody" data-type="nav_2">添加二级导航</a>
							</td>
			<td><input name="data[5][link]" type="text" class="input length_4" value="index.php?m=tag"></td>
			<td>
								<input type="radio" name="home"  value="5" >
							</td>
			<td class="tac"><input name="data[5][isshow]" type="checkbox" value="1"  checked></td>
			<td>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=5&type=main&m=nav&c=nav&a=edit" class="mr10 J_dialog" title="导航编辑">[编辑]</a>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=5&m=nav&c=nav&a=del" class="mr10 J_ajax_del">[删除]</a>
			</td>
		</tr>
		</tbody>
				<tbody>
		<tr>
			<td><span class="zero_icon" data-id="6"></span></td>
			<td>
				<input name="data[6][navid]" type="hidden" value="6" >
				<input name="data[6][orderid]" type="text" class="input length_0 mr10" value="5">
				<input name="data[6][name]" type="text" class="input length_3 mr5" value="应用">
								<a style="display:none" href="http://127.0.0.1:8080/phpwind9/admin.php?parentid=6&type=main&m=nav&c=nav&a=add" class="link_add J_addChild add_nav" data-id="6" data-html="tbody" data-type="nav_2">添加二级导航</a>
							</td>
			<td><input name="data[6][link]" type="text" class="input length_4" value="index.php?m=appcenter"></td>
			<td>
								<input type="radio" name="home"  value="6" >
							</td>
			<td class="tac"><input name="data[6][isshow]" type="checkbox" value="1"  checked></td>
			<td>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=6&type=main&m=nav&c=nav&a=edit" class="mr10 J_dialog" title="导航编辑">[编辑]</a>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=6&m=nav&c=nav&a=del" class="mr10 J_ajax_del">[删除]</a>
			</td>
		</tr>
		</tbody>
				<tbody>
		<tr>
			<td><span class="zero_icon" data-id="4"></span></td>
			<td>
				<input name="data[4][navid]" type="hidden" value="4" >
				<input name="data[4][orderid]" type="text" class="input length_0 mr10" value="6">
				<input name="data[4][name]" type="text" class="input length_3 mr5" value="云平台">
								<a style="display:none" href="http://127.0.0.1:8080/phpwind9/admin.php?parentid=4&type=main&m=nav&c=nav&a=add" class="link_add J_addChild add_nav" data-id="4" data-html="tbody" data-type="nav_2">添加二级导航</a>
							</td>
			<td><input name="data[4][link]" type="text" class="input length_4" value="http://open.phpwind.com"></td>
			<td>
								<input type="radio" name="home"  value="4" >
							</td>
			<td class="tac"><input name="data[4][isshow]" type="checkbox" value="1"  checked></td>
			<td>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=4&type=main&m=nav&c=nav&a=edit" class="mr10 J_dialog" title="导航编辑">[编辑]</a>
				<a href="http://127.0.0.1:8080/phpwind9/admin.php?navid=4&m=nav&c=nav&a=del" class="mr10 J_ajax_del">[删除]</a>
			</td>
		</tr>
		</tbody>
			</table>
	<table width="100%">
		<tr class="ct"><td colspan="5" style="padding-left:38px;"><a data-type="nav_1" data-html="tbody" href="" id="J_add_root" class="link_add">添加导航</a></td></tr>
	</table>
</div>
<div class="btn_wrap">
	<div class="btn_wrap_pd">
		<button class="btn btn_submit mr10 J_ajax_submit_btn" type="submit">提交</button>
		<input name="navtype" type="hidden" value="main" >
	</div>
</div>	
<input type="hidden" name="csrf_token" value="62532b5cc3d77233"/></form>
<!-- end -->

</div>

<script>
/*
root_tr_html 为“添加导航”html
child_tr_html 为“添加二级导航”html
*/
var root_tr_html = '<tr>\
                            <td><span class="zero_icon mr10"></span></td>\
                                        <td>\
                                            <input name="newdata[root_][orderid]" type="text" value="" class="input length_0 mr10">\
                                            <input name="newdata[root_][name]" type="text" class="input length_3 mr5" value="">\
                                            											<a style="display: none; " href="#" class="link_add J_addChild add_nav" data-html="tbody" data-id="temp_root_" data-type="nav_2">添加二级导航</a>\
											                                            <input type="hidden" name="newdata[root_][tempid]" value="temp_root_"/>\
                                        </td>\
                                        <td>\
                                            <input name="newdata[root_][link]" type="text" class="input length_4" value="">\
                                        </td>\
																				<td>\
                                        										<input type="radio" name="home" value="home_root_" ></td>\
										</td>\
                                        <td class="tac"><input name="newdata[root_][isshow]" type="checkbox" value="1" checked="checked"></td>\
                                        <td>\
                                            <a href="" class="mr5 J_newRow_del">[删除]</a>\
                                        </td>\
                                    </tr>',
	child_tr_html = '<tr>\
						<td></td>\
						<td><span class="plus_icon"></span>\
							<input name="newdata[child_][orderid]" type="text" value="" class="input length_0 mr10">\
                                            <input name="newdata[child_][name]" type="text" class="input length_3 mr5" value="">\
                                        </td>\
                                        <td>\
                                            <input name="newdata[child_][link]" type="text" class="input length_4" value="">\
                                        </td>\
																				<td></td>\
                                        <td class="tac"><input name="newdata[child_][isshow]" type="checkbox" value="1" checked="checked"></td>\
                                        <td>\
                                            <a href="" class="mr5 J_newRow_del">[删除]</a>\
                                            <input type="hidden" name="newdata[child_][parentid]" value="id_"/>\
                                        </td>\
                                    </tr>';

Wind.js(GV.JS_ROOT+ 'pages/admin/common/forumTree_table.js?v=' +GV.JS_VERSION);
</script>
</body>
</html>